<template>
<div>
<mybut @click="allChecked=!allChecked">abcdefg</mybut>
<div v-if="allChecked"><div v-for="(value, name, index) in articleList" :key="index">
    {{index}}。{{name}}:{{JSON.stringify(value)}}</div></div>

</div>
</template>

<script>
import mybut from '../lesson9/mybut.vue';
import axios from "axios"
export default {
  components: { mybut},
  data(){
      return{
          editIndex:0,
          searchMsg:"",
          allChecked:false,
          articleList:{},
      }
  },
  methods:{
      getArticleList(){
          axios.get("http://mymock/test").then((res)=>{
              console.log(res)
              this.articleList=res.data
          })
      }
  },
  created(){
      this.getArticleList()
  }
  }
</script>

<style>

</style>